<template>
	<view class="min100 plr-30 gray-2 ptb-77 text-center">
		<image src="../../static/logo.png" class="logo"></image>
		<image :src="info.server_wx_image" class="contactImg mt-60"></image>
		<view class="mtb-80">
			客服微信：{{info.server_wx_number}}
		</view>
		<view class="" @click="callPhone">
			客服电话：{{info.server_phone}}
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				info: {}
			}
		},
		onShow() {
			this.$http('api/login/serverConfig').then(res => {
				this.info = res;
			})
		},
		methods: {
			// 头部按钮
			onNavigationBarButtonTap() {
				uni.navigateTo({
					url: './feedback'
				})
			},
			callPhone() {
				let that = this;
				uni.makePhoneCall({
					phone: that.info.server_phone
				})
			}
		}
	}
</script>

<style lang="less" scoped>
	.logo {
		width: 284rpx;
		height: 60rpx;
		display: block;
		margin: 0 auto 50rpx;
	}

	.contactImg {
		width: 300rpx;
		height: 300rpx;
	}
</style>
